package com.chensheng.converter;

import com.chensheng.dto.OrderDTO;
import com.chensheng.model.OrderMaster;
import org.springframework.beans.BeanUtils;

/**
 * @Author:ChenSheng
 * @Description:
 * @Date: Created in 下午 22:15 2018/5/15 0015
 */
public class OrderMaster2OrderDTO {

    public static OrderDTO convert(OrderMaster orderMaster){
        OrderDTO orderDTO = new OrderDTO();
        BeanUtils.copyProperties(orderMaster, orderDTO);
        return orderDTO;
    }
}
